github.com/coder/websocket.header.opcode (field)
14 uses
github.com/coder/websocket (current package)
frame.go#L42: opcode opcode
frame.go#L65: h.opcode = opcode(b & 0xf)
frame.go#L127: b |= byte(h.opcode)
read.go#L177: if h.opcode != opText && h.opcode != opBinary {
read.go#L200: switch h.opcode {
read.go#L205: if h.opcode == opClose && CloseStatus(err) != -1 {
read.go#L208: return header{}, fmt.Errorf("failed to handle control frame %v: %w", h.opcode, err)
read.go#L213: err := fmt.Errorf("received unknown opcode %v", h.opcode)
read.go#L315: switch h.opcode {
read.go#L386: if h.opcode == opContinuation {
read.go#L394: return MessageType(h.opcode), c.msgReader, nil
read.go#L470: if h.opcode != opContinuation {
write.go#L280: c.writeHeader.opcode = opcode
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |